package cmpe273.classproject.testclient;

import java.rmi.RemoteException;

import cmpe273.classproject.server.model.Movie;
import cmpe273.classproject.server.service.MovieServiceImplProxy;

public class TestMovie {
	
	private int movieId;
	private MovieServiceImplProxy service = null;
	
	public TestMovie(int movieId, MovieServiceImplProxy service) {
		this.movieId = movieId;
		this.service = service;
	}

	public void query() {
		Movie m = new Movie();
		m.setMovieId(movieId);
		try {
			service.findMovie(m);
		} catch (RemoteException e) {
			e.printStackTrace();
		}
	}
}